﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DoveyAttribute
{
    /// <summary>
    /// 自定义特性
    /// </summary>
    //[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class,AllowMultiple =true,Inherited =true)]  //指定修饰的对象，运行重复添加特性，修饰特性是否子类有效
    [AttributeUsage(AttributeTargets.All,AllowMultiple =true,Inherited =true)]  //指定修饰的对象，运行重复添加特性，修饰特性是否子类有效  // 赋值不能用变量
    public class CustomAttribute :Attribute
    {

        public string Name
        {
            get;set;
        }
        public int ID { get; set; }

        public string Description { get; set; }
    }
}
